<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <form method="POST" id="list" action="{:U('proExport')}">
        <input type="hidden" name="batch" value="{$batch}">
    <div class="main-title">
        <h2> {$title}</h2>
        <button type="submit" class=" confirm btn btn-default">导出</button>
    </div>
    </form>

    <div ng-controller="DingjiaCtrl" ng-init="listinit('{$batch}')">
            <div class="data-table table-striped">
            <table>
                <thead>
                <tr>
                    <th>商品编码</th>
                    <th>商品名称</th>
                    <th>规格</th>
                    <th>基础成本</th>
                    <th>件重</th>
                    <th>总重</th>
                    <th>总件数</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in items">
                        <td>
                            <span ng-bind="item.BIN"></span>
                        </td>
                        <td>
                            <span ng-bind="item.pname"></span>
                        </td>
                        <td>
                            <span ng-bind="item.spec"></span>
                        </td>
                        <td>
                            <span ng-bind="item.base_price"></span>
                        </td>
                        <td>
                            <span ng-bind="item.spec_weight"></span>
                        </td>
                        <td>
                            <span ng-bind="item.total_weight"></span>
                        </td>
                        <td>
                            <span ng-bind="item.total_num"></span>
                        </td>
                        <td>
                            <a href="{:U('Dingjia/prodel')}&id={{item.id}}" class="ajax-get confirm btn btn-danger">删除</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="page">
        {$_page}
    </div>
    <div class="col-md-12">
        <a  class="btn btn-success" id="fh" onclick="javascript:history.back(-1); return false;">返 回</a>
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Dingjia/batchlist')}');
        $(".time").datetimepicker({
            format: 'Y-m-d'
        });
    </script>
</block>
